package com.youlai.boot.modules.warehouse.converter;

import com.youlai.boot.modules.warehouse.model.Warehouse;
import com.youlai.boot.modules.warehouse.model.WarehouseForm;
import com.youlai.boot.modules.warehouse.model.WarehouseVO;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface WarehouseConverter {
    WarehouseVO toVO(Warehouse warehouse);

    Warehouse toEntity(WarehouseForm form);

    WarehouseForm toForm(Warehouse warehouse);
}